package jcommon.chap2_string;

import org.apache.commons.lang.StringUtils;

public class CheckEmpty {

	public static void main(String[] args) {
		String test = "";
		String test2 = "\n\n\t";
		String test3 = null;
		String test4 = "Test";
		System.out.println( "---------- Test Blank ----------" );
		System.out.println( "test blank? " + StringUtils.isBlank( test ) );
		System.out.println( "test2 blank? " + StringUtils.isBlank( test2 ) );
		System.out.println( "test3 blank? " + StringUtils.isBlank( test3 ) );
		System.out.println( "test4 blank? " + StringUtils.isBlank( test4 ) );
		
		test = "\t\t";
		test2 = "Test";
		System.out.println( "---------- Test Not Blank ----------" );
		System.out.println( "test is not blank? " + StringUtils.isNotBlank( test ) );
		System.out.println( "test2 is not blank? " + StringUtils.isNotBlank( test2 ) );
	}
}
